#include "src/defer.h"
#include <iostream>

int main() {
    defer (std::cout<<"defer 1"<<std::endl);
    std::cout<<"pos 1"<<std::endl;
    {
        defer (std::cout<<"defer 2"<<std::endl);
        defer (std::cout<<"defer 3"<<std::endl);
        std::cout<<"pos 2"<<std::endl;
    }
    std::cout<<"pos 3"<<std::endl;
    return 0;
}